package config

type Configuration struct {
	Database Database
	Redis    Redis
}
type Redis struct {
	Addr     string `json:"addr" yaml:"addr" mapstructure:"addr"`
	Port     string `json:"port" yaml:"port" mapstructure:"port"`
	Password string `json:"password" yaml:"password" mapstructure:"password"`
	DB       int    `json:"DB" yaml:"db" mapstructure:"db"`
}
type Database struct {
	UserName string `json:"username" yaml:"username" mapstructure:"username"`
	PassWord string `json:"password" yaml:"password" mapstructure:"password"`
	Address  string `json:"address" yaml:"address" mapstructure:"address"`
	Port     string `json:"port" yaml:"port" mapstructure:"port"`
	DBname   string `json:"dbname" yaml:"dbname" mapstructure:"dbname"`
}
